package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改相册的DTO
 * @author 何惠民
 */
@Data
public class AlbumUpdateDTO implements Serializable {

    /**
     * 相册id
     */
    @ApiModelProperty(value = "相册id",required = true)
    @NotNull(message = "添加相册失败,必须提交相册id")
    private Long id;
    /**
     * 相册名称
     * required 是否必须提交
     * Validation 框架提供@NotNull检查参数不能为NULL
     */
    @ApiModelProperty(value = "相册名称",required = true)
    @NotNull(message = "添加相册失败,必须提交相册名称")
    private String name;

    /**
     * 相册简介
     */
    @ApiModelProperty(value = "相册简介",required = true)
    @NotNull(message = "必须提交相册简介")
    private String description;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "自定义排序序号", required = true)
    @NotNull(message = "必须提交排序序号")
    private Integer sort;

}
